package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Role;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class RoleBO {

    private String ukId;
    private String name;
    private String description;
    private String status;
    private Integer sort;

    public Role toRole() {
        Role role = new Role();
        BeanUtils.copyProperties(this, role);
        role.setGmtCreate();
        role.setGmtModified();
        return role;
    }

}